<h2 class="title">收款账户</h2>

<div class="shouk">
    <p class="prompt">声明：您的收款信息只用于哇吖平台之内，对外我们绝不泄露.</p>
    <p class="info">提示：若选择支付宝作为收款账户，汇率按照人民币结算。.</p>
</div>
<{foreach from=$bankList item=account}>
<{if $account.isDefault}>
<div class="bank-list">
    <h2 class="strong-df">默认收款账户</h2>
    <ul>
        <li class="li fix">
            收款类型：

            <{if $account.accountTypeName == 'PAYPAL'}>
            <img src="/resource/www/imgs/paypal_icon.png" class="payimg">
            <{else}>
            <img src="/resource/www/imgs/alipay_icon.png" alt="" class="payimg">
            <{/if}>

        </li>
        <li class="li fix">
        收款币种：
        <{if $account.accountTypeName == 'PAYPAL'}>
            欧元(EUR)
            <{else}>
            人民币(RMB)
            <{/if}>
        </li>
        <li class="li fix">
             收款人： <{$account.accountName}>
        </li>
        <li class="li fix">
             账户账号： <{$account.accountUserName}>
        </li>
    </ul>
    <div class="bl-btn">
    <span class="click-df"  onclick="delete_bank(<{$account.id}>)">删除</span>
    </div>

</div>
<{/if}>
<{/foreach}>

<{foreach from=$bankList item=account}>
<{if $account.isDefault==0}>
<div class="bank-list">
    <h2 class="strong">您的收款账户</h2>
    <ul>
        <li class="li fix">
            收款类型：

            <{if $account.accountTypeName == 'PAYPAL'}>
            <img src="/resource/www/imgs/paypal_icon.png" class="payimg">
            <{else}>
            <img src="/resource/www/imgs/alipay_icon.png" alt="" class="payimg">
            <{/if}>

        </li>
        <li class="li fix">
        收款币种：
        <{if $account.accountTypeName == 'PAYPAL'}>
            欧元(EUR)
            <{else}>
            人民币(RMB)
            <{/if}>
        </li>
        <li class="li fix">
             收款人： <{$account.accountName}>
        </li>
        <li class="li fix">
             账户账号： <{$account.accountUserName}>
        </li>
    </ul>
    <div class="bl-btn">
    <{if $account.isDefault==0}>
    <span class="click"  onclick="choose_default(<{$account.id}>)">设置为默认账户</span>
    <{/if}>
    <span class="click"  onclick="delete_bank(<{$account.id}>)">删除</span>
    </div>
</div>
<{/if}>
<{/foreach}>
<a href="/guider/bank_create"><img src="/resource/www/imgs/add_bank_icon.png" alt="" class="bank-list-add-sk"></a>


<script>
    function choose_default(id){
        location.href='/bank/setDefault/'+id
    }
    function delete_bank(id){
        location.href='/bank/deleteBank/'+id
    }
</script>
